package hhs.poc.util;

import hhs.poc.activities.whoiswho.Employee;
import android.graphics.Color;
import android.util.Log;
import android.view.View;

public class utils {
	private static Employee employee = null;
	
	public static void saveEmployee(Employee emp){
		employee = emp;
	}
	
	public static Employee retrieveEmployee(){
		return employee;
	}

	public static void setTitleBackgroundColor(View titleView) {
		if (titleView != null) {
			View parentView = (View) titleView.getParent();
			if (parentView != null) {
				parentView.setBackgroundColor(Color.parseColor("#a9b532"));
			}
		}
	}
	
	public static void log(String tag, String log) {
		Log.d(tag, log);
	}
}
